#ifndef INSTRUCTORWINDOW_H
#define INSTRUCTORWINDOW_H

#include <QMainWindow>
#include <QTableWidgetItem>
#include <QListWidgetItem>
#include <QTextEdit>
#include <QListWidgetItem>
#include <QListWidget>
#include <QWidget>
#include "outlineSectionPage.h"
#include "admindata.h"

namespace Ui {
class InstructorWindow;
}

class InstructorWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit InstructorWindow(QWidget *parent = 0, AdminData* data = 0);
    ~InstructorWindow();
    
private slots:
    void on_editButton_clicked();

    void on_sectionListWidget_currentRowChanged(int currentRow);

    void on_cancelButton_clicked();

    void on_saveOutlineButton_clicked();

    void on_submitOutlineButton_clicked();

    void on_outlineList_itemDoubleClicked(QListWidgetItem *item);

private:
    Ui::InstructorWindow *ui;
    AdminData* data;
    Course* selectedCourse;
    int selectedRow;
    QVector<Course> courseList;


    QVector<Course> approvedCourses;
    QVector<Course> courses;
    QString textOutline;
    CourseOutline courseOutline;

};

#endif // INSTRUCTORWINDOW_H
